import React from 'react';
import { HashRouter as Router, Route, Switch } from "react-router-dom";
import NewsComp from '../pages/News';
import CountryComp from '../pages/Country';
import StudentComp from '../pages/Student';
import BBSComp from '../pages/BBS';
import NotificationComp from '../pages/Notification';
import HotKeywordComp from '../pages/HotKeyword';
import TaskComp from '../pages/Task';
import ApprovalComp from '../pages/Approval';
import ReportComp from '../pages/Report';
const Home = () => (
    <div>
        <h2 className="huanying">Welcome！</h2>
    </div>
);

export const Routes = () => (
    <Switch>
        <Route exact path='/' component={Home}/>
        <Route path='/news' component={NewsComp}/>
        <Route path='/task' component={TaskComp}/>
        <Route path='/approval' component={ApprovalComp}/>
        <Route path='/country' component={CountryComp}/>
        <Route path='/student' component={StudentComp}/>
        <Route path='/bbs' component={BBSComp}/>
        <Route path='/notification' component={NotificationComp}/>
        <Route path='/hot-keywords' component={HotKeywordComp}/>
        {/*<Route path='/reports' component={ReportComp}/>*/}
    </Switch>
);

var MenuData = [
    {
        icon: 'read',
        text: 'News',
        link: '/news/list'
    },
    {
        icon: 'solution',
        text: 'BBS',
        link: '/bbs/list'
    },
    {
        icon: 'book',
        text: 'Task',
        link: '/task/list'
    },
    {
        icon: 'edit',
        text: 'Approval',
        link: '/approval/list'
    },
    {
        icon: 'flag',
        text: 'Country',
        link: '/country/list'
    },
    {
        icon: 'team',
        text: 'Student',
        link: '/student/list'
    },
    {
        icon: 'mail',
        text: 'Notification',
        link: '/notification/list'
    },
    {
        icon: 'fire',
        text: 'HotKeyword',
        link: '/hot-keywords/list'
    },
    // {
    //     icon: 'safety',
    //     text: 'Report',
    //     link: '/reports/list'
    // }
];

export default MenuData;